﻿@model IEnumerable<DLM.Domain.Model.Notice>
@using Webdiyer.WebControls.Mvc;

<h3>
    系统公告<a>共 @Model.Count() 条</a></h3>
<div class="tr clearfix">
  @*  &nbsp;&nbsp;&nbsp;&nbsp;操作:&nbsp;&nbsp;<input type="button" value="" class="btn_s delete_message" />*@
</div>
<div class="tr clearfix">
    <table class="tb">
        <thead>
            <tr>
                <th>
                    标题
                </th>
                <th>
                    内容
                </th>
                <th>
                    时间
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @item.Subject
                    </td>
                    <td>
                        <span class="message_wrap"><a >@item.Content</a></span>
                    </td>
                    <td>
                        @item.CreateDate
                    </td>
             
                </tr>
            }
        </tbody>
    </table>
</div>
<div class="paging">
@Ajax.Pager(Model as PagedList<DLM.Domain.Model.Notice>, new PagerOptions
{
    PageIndexParameterName = "noticeid",
    CurrentPagerItemWrapperFormatString = "<span class=\"current\">{0}</span>",
    //NumericPagerItemWrapperFormatString = "<a>{0}</a>",
    PrevPageText = "<",
    NextPageText = ">",
    ShowNumericPagerItems = true,
    ShowFirstLast = false,
    ShowPrevNext = true,
    CssClass = "scott",
    MorePageText = "...",
    SeparatorHtml = ""
},
        new AjaxOptions { UpdateTargetId = "divNotice" }
    )
    </div>